# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=py3-pymdown-extensions
pkgver=10.7
pkgrel=1
pkgdesc="extension pack for Python Markdown"
url="https://github.com/facelessuser/pymdown-extensions"
arch="noarch"
license="MIT"
depends="python3 py3-markdown"
makedepends="py3-gpep517 py3-hatchling"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/p/pymdown-extensions/pymdown_extensions-$pkgver.tar.gz"
builddir="$srcdir/pymdown_extensions-$pkgver"
options="!check" # Some tests fail.

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/pymdown_extensions*.whl
}

sha512sums="
1fd1514dc2d322de42b077f90c9e328b6359f34904339deaaed699278c41ea464c793a3a794337d7bb634e2eca4411d54553005a3e5b0d8e31444feeb9e9a0db  pymdown_extensions-10.7.tar.gz
"
